package top.go2do.common.exception;

/**
 * @author xingyuji
 * @date 2025/3/9 18:18
 * @description
 */
public enum BusinessResultCode {

    SUCCESS(1200, "success"),
    RESOURCE_NOT_FOUND(1404, "resource.not_found"),
    INVALID_PARAMETER(1400, "invalid.parameter"),
    INTERNAL_ERROR(1500, "internal.error");

    private final int code;
    private final String msgKey;

    BusinessResultCode(int code, String msgKey) {
        this.code = code;
        this.msgKey = msgKey;
    }

    // Getter
    public int getCode() {
        return code;
    }

    public String getMsgKey() {
        return msgKey;
    }
}
